package dao;

import org.apache.ibatis.annotations.Param;
import vo.PraiseVo;

public interface PraiseDao {
    //点赞
    void addCommentPraiseById(PraiseVo praiseVo);

    //点赞前查询是否已经点赞过，根据userid和commenid
    int queryPraisedByCommentidAndUserid(@Param("user_id") Integer userid, @Param("comment_id") Integer commentid);

    //取消赞
    void removeCommentPraiseById(@Param("user_id") Integer userid, @Param("comment_id") Integer commentid);
}
